﻿
window.SearchKey = null;
$.MGJ.ClientManage = [];
(function () {
    var _this = $.MGJ.ClientManage;
    $.extend($.MGJ.ClientManage, {
        ClientManageExecl: function () {
            var msearch = $("#msearch").val();
            window.open(ACTION_URL("ClientManageExecl", "Market") + "?msearch=" + window.SearchKey);
        }
    });
})(jQuery);


//(function () {
//    var _this = $.MGJ.ClientManage;
//    $.extend($.MGJ.ClientManage, {

//        ClientManageExecl: function () {
//            window.open(ACTION_URL("ClientManageExecl", "Market"));
//        }

//    });
//})(jQuery);


(function () {
    var _this = $.MGJ.ClientManage;
    $.extend($.MGJ.ClientManage, {
        // 详情
        Dialog_PreviewRedObj: null,
        Dialog_PreviewRed: function () {

            this.Dialog_PreviewRedObj = $.L.dialog({
                url: ACTION_URL("PreviewRed", "Market"),
                title: "详情",
                width: 800,
                height: 'auto',
                callback: function () {
                    $.L.msgError(1);
                },

                buttons: {
                    //"button_save": {
                    //    type: 'primary',
                    //    text: '保存',
                    //    click: function () {
                    //    }
                    //},
                    "button_cancel": {
                        type: 'default',
                        text: '取消',
                        click: 'MODALMISS'
                    }
                }
            });


        },
        // 交易记录
        Dialog_PreviewTurntableObj: null,
        Dialog_PreviewTurntable: function () {
            this.Dialog_PreviewTurntableObj = $.L.dialog({
                url: ACTION_URL("PreviewTurntable", "Market"),
                title: "交易记录",
                width: 350,
                height: 500,
                buttons: {
                    //"button_save": {
                    //    type: 'primary',
                    //    text: '保存',
                    //    click: function () {


                    //    }
                    //},
                    "button_cancel": {
                        type: 'default',
                        text: '取消',
                        click: 'MODALMISS'
                    }
                }
            });
        },

    });
})(jQuery);






(function () {
    var _this = $.MGJ.ClientManage;
    $.extend($.MGJ.ClientManage, {

        //分页   
        Ajax_MarketList: function (pageIndex) {
            window.SearchKey = $("#Rsearch").val();
            var msearch = $("#msearch").val();
            $.L.ajaxHandle({
                url: ACTION_URL("MarketList", "Market"),
                data: {
                    msearch: window.SearchKey,
                    pageIndex: pageIndex,
                    pageSize: 10 
                },
                success: function (response) {
                    $("#MarkeTtable").L_bindingDataList(response);
                }
            });
        }
    }); 
})(jQuery);

(function () {
    var _this = $.MGJ.ClientManage;
    $.extend($.MGJ.ClientManage, {

    });
})(jQuery);
